package com.travelms.service.commonuserpage;

import com.travelms.pojo.User;
import com.travelms.dao.DBFind;

import java.io.IOException;
import java.sql.SQLException;
import java.util.Scanner;

public class LookOneself {
    private DBFind dbFind = new DBFind();
    private User user = new User();
    Scanner sc = new Scanner(System.in);
    public LookOneself(String username) throws SQLException, IOException {
        System.out.println("您的个人信息为：");
        user = dbFind.getSelfInfo(username);
        System.out.println(user);
        System.out.println("按任意键退出");
        String n = sc.nextLine();
    }
}
